#!/usr/bin/python
import subprocess, sys

try:
  if subprocess.check_output(['java', 'test']) == 'Hello World!\n':
    sys.exit(0)
  else:
    sys.exit(1)
except Exception:
  sys.exit(1)
